package com.win.controller.hdfs;

import com.win.service.HdfsService;
import com.win.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hdfs")
@CrossOrigin
@Slf4j
public class HdfsController {
    @Autowired
    private HdfsService hdfsService;

    @GetMapping("getHdfs")
    public Result getFile(){
        Result result = hdfsService.getFile();
        return result;
    }

}
